<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui"
	template="/templates/template.xhtml">

	<ui:define name="body">
		<h:form id="formTrocarSenha" prependId="false">
			<p:fieldset legend="#{trocarSenhaBean.qualifiedName}" id="fieldPrincipalTrocarSenha">
				<h:panelGrid columns="2" id="panelCadastroTrocarSenha" border="1" columnClasses="coluna20,coluna80" width="100%">


					<h:outputText value="Nova Senha:" styleClass="icoObrigatorio" />
					<p:password feedback="true" autocomplete="off" value="#{trocarSenhaBean.senhaT1}"
						promptLabel="Por favor insira a senha" weakLabel="Fraca" goodLabel="Boa" strongLabel="Forte" />

					<h:outputText value="Confirmação:" styleClass="icoObrigatorio" />
					<p:password feedback="false" id="senhaconfirmaT" autocomplete="off" value="#{trocarSenhaBean.senhaT2}"
						promptLabel="Por favor insira a senha" />

				</h:panelGrid>
				<br />
				<p:toolbar>
					<p:toolbarGroup align="left">
						<p:commandButton value="Salvar" ajax="true" process="@form" update="@form" action="#{trocarSenhaBean.save}" />
					</p:toolbarGroup>
				</p:toolbar>
				<br />
				<p:confirmDialog appendToBody="true" closable="false" message="Senha alterada com sucesso." header="" severity="alert"
					widgetVar="confirmation">
					<p:commandButton value="Continuar" ajax="true" action="#{trocarSenhaBean.redirecionarPrincipal}" />
				</p:confirmDialog>
			</p:fieldset>
		</h:form>
	</ui:define>
</ui:composition>